const _ = require("lodash");
var object = {'a': [{'b': {'c': 3}}]};

console.log(_.get(object, 'a[0].b.c'));
// => 3

console.log(_.get(object, ['a', '0', 'b', 'c']));
// => 3

// 如果取值为undefined 则返回 自定义的defaultValue
console.log(_.get(object, 'a.b.c', 'default'));
// => 'default'
